import axios from 'axios'
import { post ,get} from '@/util/request/http'

export const posts = (url,params) => {
    return post(url,params).then(
        res => {
            console.log(res.data)
            return Promise.resolve(res)
        }
    ).catch(err => {
        return Promise.reject(err)
    })
}

export const gets = (url, params) => {
    return get(url, params).then(
        res => {
            return Promise.resolve(res)
        }
    ).catch(err => {
        return Promise.reject(err)
    })
}


